package com.sky.mapper.admin;

import com.sky.pojo.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 菜品口味持久层接口
 * @author zgp
 * @version V1.0
 * @date 2025-01-14 16:05
 */
@Mapper
public interface DishFlavorMapper {
    /**
     * 新增菜品口味
     * @param dishFlavor 菜品口味
     */
    void insert(DishFlavor dishFlavor);

    /**
     * 批量新增菜品口味
     * @param flavors 菜品口味
     */
    void insertOfBatch(@Param("flavors") List<DishFlavor> flavors);

    /**
     * 删除菜品对应口味
     * @param dishIds 菜品id集合
     */
    void deleteByDishIds(@Param("dishIds") List<Integer> dishIds);
}
